<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsArticle-add">
			<div class="form-group">	
				<label class="col-sm-2 control-label required_hold"><em class="required_red">*</em>内容编码 </label>
				<div class="col-sm-4">
					<input id="contentCode" name="contentCode" class="form-control" type="text">
				</div>
				<label class="col-sm-2 control-label">站点编号 </label>
				<div class="col-sm-4">
					<input id="siteId" name="siteId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">栏目 </label>
				<div class="col-sm-10">
					<input id="columnId" name="columnId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">模型模板 </label>
				<div class="col-sm-4">
					<input id="formId" name="formId" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">模板路径 </label>
				<div class="col-sm-4">
					<input id="templatePath" name="templatePath" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-2 control-label">外部链接 </label>
				<div class="col-sm-10">
					<input id="contentUrl" name="contentUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">标题名称 </label>
				<div class="col-sm-10">
					<input id="titleName" name="titleName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">标题图片 </label>
				<div class="col-sm-4">
					<input id="titleUrl" name="titleUrl" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">附件 </label>
				<div class="col-sm-4">
					<input id="annex" name="annex" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-2 control-label">页面标题 </label>
				<div class="col-sm-10">
					<input id="title" name="title" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">关键词 </label>
				<div class="col-sm-10">
					<input id="keywords" name="keywords" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">描述文字 </label>
				<div class="col-sm-10">
					<input id="description" name="description" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">Tag标签 </label>
				<div class="col-sm-10">
					<input id="tag" name="tag" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">是否推荐0、否1、是：</label>
				<div class="col-sm-4">
					<input id="isRecommend" name="isRecommend" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">是否置顶0、否1、是：</label>
				<div class="col-sm-4">
					<input id="isTop" name="isTop" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-2 control-label">是否首页显示0、否1、是：</label>
				<div class="col-sm-4">
					<input id="isShow" name="isShow" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">点击数：</label>
				<div class="col-sm-4">
					<input id="clicks" name="clicks" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-2 control-label">发布人：</label>
				<div class="col-sm-2">
					<input id="createPeople" name="createPeople" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">审核状态0、待审核  1、通过 2、未通过：</label>
				<div class="col-sm-2">
					<input id="status" name="status" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">状态:0、删除 1、正常 2、回收站：</label>
				<div class="col-sm-2">
					<input id="delFlag" name="delFlag" class="form-control" type="text">
				</div>
			</div>


			<div class="form-group">	
				<label class="col-sm-2 control-label">备注：</label>
				<div class="col-sm-10">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">备注：</label>
				<div class="col-sm-10">
					<textarea id="editor" style="width: 99%;height: 360px;"></textarea>
				</div>
			</div>


		</form>
	</div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsArticle"
		$("#form-cmsArticle-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-cmsArticle-add').serialize());
	        }
	    }

        var ue = UE.getEditor('editor');
	</script>
</body>
</html>
